package com.carkeeper.service;

import com.carkeeper.entity.Result;
import com.carkeeper.pojo.Blog;
import com.carkeeper.pojo.BlogCategory;
import com.github.pagehelper.PageInfo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

public interface DiscoverService {


    /**
     * 多条件查询
     * @param map
     * @return
     */
    @Transactional
    public PageInfo<Blog> multipartConditionFindBlog(Map<String, String> map, String currentPage, String pageSize);


    /**
     * 查询全部分类
     * @return
     */
    @Transactional
    public List<BlogCategory> findAllCategory();


    /**
     *添加文稿
     * @param map
     * @return
     */
    @Transactional
    public Result addBlog(Map<String, String> map);


    /**
     * 根据分类查询知识库
     * @param type
     * @return
     */
   /* public Result<Map<String,List>> findKnowledgeByCategory(String type);*/


    /**
     * 根据id查询文稿详情
     *
     * @param id
     * @return
     */
    public Result<Blog> findBlogById(String id);


    /**
     * 修改文稿
     * @param id
     * @return
     */
    public Result update(String id);





}
